﻿<%@ Page Language="C#" MasterPageFile="~/SiteAdmin/MasterPage.master" AutoEventWireup="true" CodeFile="StocktakingManager.aspx.cs" Inherits="ICS_StocktakingManager" Title="Untitled Page" %>
<%@ Register Src="GoodStocktaking.ascx" TagName="GoodStocktaking" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolderID" Runat="Server">
<asp:Panel ID="pnlGrid" runat="server" CssClass="centerPanel" Width="95%">
<div class="searchDiv" >
           <table cellspacing="0" class="searchTable">
            <tr>
                <td>
                盘点单号：
                </td>
                <td>
                <asp:TextBox ID="S_StocktakingCode" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td>
                <td>
                盘点日期：
                </td>
                <td>
                <asp:TextBox ID="S_StocktakingDate" runat="server" onfocus="calendar.ShowCaltable(this, event);" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td> 
                <td>
                    &nbsp;&nbsp;<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text=" 查询 "  CssClass="searchButton" />
                </td>
            </tr>
            </table>
     </div>
<div class="webPanelBorder" >
    <div class="webPanelCaption">库存盘点管理</div>
    <div class="webPanelContent">
        <ofcc:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
            OnRowDataBound="gridView_RowDataBound" 
            onsplitpageindexchange="gridView_SplitPageIndexChange">
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:HiddenField ID = "HiddenField1" runat="server" Value='<%#Eval("StocktakingID") %>' />
                        <input ID="StocktakingID" checked="checked" name="StocktakingID" type="radio" 
                            value='<%#DataBinder.Eval(Container.DataItem,"StocktakingID")%>' /> 
                    </ItemTemplate>
                    <HeaderStyle Width="40px" />
                </asp:TemplateField>
                <asp:HyperLinkField DataTextField="StocktakingCode" HeaderText="盘点单号" NavigateUrl="#"/>
                <asp:BoundField DataField="StocktakingDate" HeaderText="盘点日期" /> 
                <asp:BoundField DataField="UserName" HeaderText="经办人" />
                <asp:BoundField DataField="OrgName" HeaderText="经办部门" />
                <asp:BoundField DataField="CreateUserName" HeaderText="录入人" />
                <asp:BoundField DataField="CreateTime" HeaderText="录入日期" />
            </Columns>
        </ofcc:GridView>
     </div>
</div>
<div class="webPanelButtonArea">
    <ofcc:LinkButton ID="btnAdd" runat="server" OnClick="btnAdd_Click" CssClass="linkButton" >新建盘点单</ofcc:LinkButton>
    <%--<ofcc:LinkButton ID="btnEdit" runat="server" OnClick="btnEdit_Click" CssClass="linkButton" >修改盘点单</ofcc:LinkButton>--%>
    <ofcc:LinkButton ID="btnRemove" runat="server"  ConfirmMessage="确定要删除吗?" OnClick="btnRemove_Click" CssClass="linkButton" >删除盘点单</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnView" runat="server" OnClick="btnView_Click" CssClass="linkButton" >查看盘点单</ofcc:LinkButton>
    
</div>
</asp:Panel>
<asp:Panel ID="pnlEdit" runat="server" Width="95%" Visible="false" CssClass="centerPanel"> 
    <uc1:GoodStocktaking ID="GoodItems" runat="server" Visible="false" /> 
</asp:Panel>
</asp:Content>


